package design.p18_command;

import design.p17_chainOfResponsibility.MyHandler;

/**
 * @ClassName: Java
 * @description:
 * @author: zxf
 * @create: 2021-06-19 22:41
 **/
public class MyCommand implements Command{

    private Receiver receiver;

    public MyCommand(Receiver receiver){
        this.receiver = receiver;
    }

    @Override
    public void exe() {
        receiver.action();
    }
}

